﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using WebMiddleware.Views;

namespace WebMiddleware
{
    /// <summary>
    /// WPF模块服务。
    /// </summary>
    public class WpfModuleService : IModuleService
    {
        public void AddServices(IServiceCollection services)
        {
            services.AddHostedService<WpfHostedService>();
            services.AddSingleton<WpfApplication>();
            services.AddSingleton<IMainWindow, MainWindow>();
            services.AddTransient<ITaskProxy, ApplicationTaskProxy>();
        }
    }
}
